package com.gxa.autoparts.portal.service.impl;

import com.gxa.autoparts.core.pojo.Article;
import com.gxa.autoparts.core.service.impl.BaseServiceImpl;
import com.gxa.autoparts.portal.mapper.ArticleMapper;
import com.gxa.autoparts.portal.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author R
 * @data 2022-01-06 14:12
 */
@Service
public class ArticleServiceImpl extends BaseServiceImpl<Article> implements ArticleService{

    @Autowired
    ArticleMapper mapper;

    @Override
    public List<Article> selectByTitle(String title) {
        List<Article> articles = mapper.selectByName(title);
        return articles;
    }
}
